<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>反馈中心</title>
	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/reset.css">
	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/fankui_scss.css">
	<script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
	<script src="<?php echo IMG_PATH ?>bdkd/js/flexible.js"></script>
	<script src="<?php echo IMG_PATH ?>bdkd/js/jquery-1.11.1.min.js"></script>
</head>
<body>
	<div class="container">
		<div class="waikuang">
			<div style="display:flex;align-items:center;">
				<div class="touxiang">
					<img src="<?php echo $data->path;?>" alt="">
				</div>
				<div class="shangguan">
					<p><span><?php echo $data->name;?></span>(
                        <?php
                        if($data->state==0){
                            ?>
                            未认证
                            <?php
                        }else{
                            ?>
                            已认证
                            <?php
                        }
                        ?>

                        )

                    </p>
					<p><img src="<?php echo IMG_PATH ?>bdkd/img/tell@2x.png" alt=""><?php echo $data->phone;?></p>
				</div>
			</div>
			<div class="shixian">
				
			</div>
			<div class="wenbenyu">
				<textarea id="context" placeholder="在这里输入想对我们说的"></textarea>
			</div>
			<div class="btn2" onclick="tijiao()">提交</div>
		</div>
	</div>
	<script src="<?php echo IMG_PATH ?>bdkd/js/fankui.js"></script>
    <script>
        function tijiao() {
            var context=$("#context").val();

            $.ajax({
                // 请求发送方式
                type: 'post',
                // 验证文件
                url: '<?php echo SITE_PATH ?>work/bpost/addback',
                dataType:'json',
                // 用户输入的帐号验证码
                data: {
                    'context': context
                },
                success: function(data){
                    console.log(data);
                    if(data.result==1){
                        alert("提交成功跳转至个人中心!");
                        window.location.href = "<?php echo SITE_PATH ?>work/buser/userInfo";
                    }else{
                        alert(data.msg);
                    }
                },
                error: function(){
                    alert('提交失败55!');
                }

            })
        }


    </script>
</body>
</html>